<?php
    @session_start();
    include('config.ini.php');
    include('function.php');
    include(APPPATH.'/class/adodb5/adodb.inc.php');
    include(APPPATH.'/languages/languages.class.php');
    include(APPPATH.'/class/class.upload.php');
    
    $db = NewADOConnection(DB_DRIVER);
    $db->Connect(DB_SERVER, DB_USER, DB_PWD, DB_NAME);
    
    $db->Execute("SET character_set_results=utf8");
    $db->Execute("SET collation_connection=utf8_general_ci");
    $db->Execute("SET NAMES 'utf8'");
    
    if(!$_SESSION['lang']){
        $_SESSION['lang'] = 'en';
    }
    
    $local = new languages($_SESSION['lang']);
?>